package com.party.model;

import java.io.Serializable;
import java.util.Date;

public class PartyLog implements Serializable {
    private Integer id;

    private Date time;

    private Date partystarttime;

    private Date partyendtime;

    private String author;

    private String partystage;

    private String status;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Date getPartystarttime() {
        return partystarttime;
    }

    public void setPartystarttime(Date partystarttime) {
        this.partystarttime = partystarttime;
    }

    public Date getPartyendtime() {
        return partyendtime;
    }

    public void setPartyendtime(Date partyendtime) {
        this.partyendtime = partyendtime;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author == null ? null : author.trim();
    }

    public String getPartystage() {
        return partystage;
    }

    public void setPartystage(String partystage) {
        this.partystage = partystage == null ? null : partystage.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PartyLog other = (PartyLog) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTime() == null ? other.getTime() == null : this.getTime().equals(other.getTime()))
            && (this.getPartystarttime() == null ? other.getPartystarttime() == null : this.getPartystarttime().equals(other.getPartystarttime()))
            && (this.getPartyendtime() == null ? other.getPartyendtime() == null : this.getPartyendtime().equals(other.getPartyendtime()))
            && (this.getAuthor() == null ? other.getAuthor() == null : this.getAuthor().equals(other.getAuthor()))
            && (this.getPartystage() == null ? other.getPartystage() == null : this.getPartystage().equals(other.getPartystage()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTime() == null) ? 0 : getTime().hashCode());
        result = prime * result + ((getPartystarttime() == null) ? 0 : getPartystarttime().hashCode());
        result = prime * result + ((getPartyendtime() == null) ? 0 : getPartyendtime().hashCode());
        result = prime * result + ((getAuthor() == null) ? 0 : getAuthor().hashCode());
        result = prime * result + ((getPartystage() == null) ? 0 : getPartystage().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        return result;
    }
}